package ee.ttu.frontend.service;

import org.springframework.stereotype.Service;

/**
 * 
 * @author Elion Sõber
 *
 */
@Service
public interface AuthenticationService {

	/**
	 * 
	 * @param username
	 * @param password - hash of the password
	 * @return true, if password provided matches the password in database <br>
	 * false, if there is not exactly 1 user account with provided username or the passwords do not match
	 */
	public boolean providedPasswordIsCorrect(String username, String password);
	
}
